/**
 * 
 */
package com.eis.thirdsys.connector.conf.bean;

import java.io.Serializable;

/**
 * @author sh-panwei01
 *
 */
public class ConfParameterName implements Serializable, Comparable<ConfParameterName> {
	/**
	 * 
	 */
	private static final long serialVersionUID = -4972123215079190789L;
	
	private String displayName;
	private String idName;
	private String example;
	
	public String getDisplayName() {
		return displayName;
	}
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}
	public String getIdName() {
		return idName;
	}
	public void setIdName(String idName) {
		this.idName = idName;
	}
	
	public ConfParameterName(String idName, String displayName, String example) {
		this.displayName = displayName.trim();
		this.idName = idName.trim();
		this.example = example;
	}
	
	public boolean equals(Object anObject) {
		if (this == anObject) {
			return true;
		}
		if (anObject instanceof ConfParameterName) {
			return idName.equals(((ConfParameterName)anObject).getIdName());
		}
		return false;
	}
	
	public int hashCode(){
	      return idName.hashCode();
	}
	
	public int compareTo(ConfParameterName anotherName) {
		return idName.compareTo(anotherName.getIdName());
	}
	public String getExample() {
		return example;
	}
	public void setExample(String example) {
		this.example = example;
	}
	
	
}
